const { program } = require('commander');
const { version } = require('../package.json');
const create = require('./create');
// 获取版本号
program.version(`lts-cli ${version}`).usage('<command> [options]');

// 创建项目
program
  .command('create <app-name>')
  .description('创建项目')
  .action((name: string) => {
    create(name);
  });

program.parse(process.argv);
